# Sets default formatting options for many editors and IDEs

# https://editorconfig.org/

root = true

[*]
charset = utf-8
insert_final_newline = true
indent_size = 4
indent_style = space
trim_trailing_whitespace = true

# Docstrings and comments use max_line_length = 79
[*.py]
max_line_length = 80

# The JSON files contain newlines inconsistently
[*.json]
indent_size = 2
insert_final_newline = ignore

# Makefiles always use tabs for indentation
[Makefile]
indent_style = tab

[*.{yml, yaml, toml, html}]
indent_size = 2

[*.md]
trim_trailing_whitespace = false
